import request from '@/utils/request'

// 查询门诊病历模板列表 (分页)
export function selectPageTemplateMedicalRecordDetail(query) {
    return request({
        url: '/business/templateMedicalRecordDetail/selectPage',
        method: 'get',
        params: query
    })
}

// 查询门诊病历模板列表 (不分页)
export function listTemplateMedicalRecordDetail(query) {
    return request({
        url: '/business/templateMedicalRecordDetail/list',
        method: 'get',
        params: query
    })
}

// 查询门诊病历模板详细
export function getTemplateMedicalRecordDetail(medicalRecordDetailId) {
    return request({
        url: '/business/templateMedicalRecordDetail/' + medicalRecordDetailId,
        method: 'get'
    })
}

// 新增门诊病历模板
export function addTemplateMedicalRecordDetail(data) {
    return request({
        url: '/business/templateMedicalRecordDetail',
        method: 'post',
        data: data
    })
}

// 修改门诊病历模板
export function updateTemplateMedicalRecordDetail(data) {
    return request({
        url: '/business/templateMedicalRecordDetail',
        method: 'put',
        data: data
    })
}

// 删除门诊病历模板
export function delTemplateMedicalRecordDetail(medicalRecordDetailId) {
    return request({
        url: '/business/templateMedicalRecordDetail/' + medicalRecordDetailId,
        method: 'delete'
    })
}
